import request from '@/utils/request'
export default {
  login(data) {
    return request({
      url: `/login`,
      method: 'post',
      data: data
    })
  },
  getIdentity(token) {
    return request({
      url: `/user/get/identity/${token}`,
      method: 'get'
    })
  },
  getUserName(token){
    return request({
      url: `/user/get/username/${token}`,
      method: 'get'
    })

  }
}
